<template>
  <div>
    <div class="topbar bg-black py-2 px-3 d-flex ai-center">
      <img src="../assets/logo.png" height="30" alt="" />
      <div class="px-2 flex-1">
        <div class="text-white">王者荣耀</div>
        <div class="text-grey-1 fs-xxs">团队成就更多</div>
      </div>
      <button type="button" class="bg-primary btn">点击下载</button>
    </div>
    <!-- nav 部分 -->
    <div class="bg-primary pt-3 pb-2">
      <div class="nav nav-inverse pb-1 jc-around">
        <!-- <div class="nav-item active"> -->
          <router-link class="nav-item" active-class="active" to="/" tag="div" exact>首页</router-link>
        <!-- </div> -->
        <!-- <div class="nav-item"> -->
          <router-link class="nav-item nav-link" active-class="active" to="/strategycenter" tag="div">攻略中心</router-link>
        <!-- </div> -->
        <!-- <div class="nav-item"> -->
          <router-link class="nav-item nav-link" active-class="active" to="/matchmindex" tag="div">赛事中心</router-link>
        <!-- </div> -->
        <!-- <div class="nav-item"> -->
          <router-link class="nav-item nav-link" active-class="active" to="/ipgame" tag="div">IP新游</router-link>
        <!-- </div> -->
      </div>
    </div>
    <router-view></router-view>
  </div>
</template>

<style lang="scss">
.topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  // background: url("../assets/images/spritePic.png") no-repeat 0 87.195%;
  // background-size: 375px 455px;
  // width: 57.6923rem;
  // height: 6.9231rem;
}
</style>
